//
//  NSDictionary+SLAdd.h
//  shunlianPower2
//
//  Created by lengain on 2019/10/10.
//  Copyright © 2019 顺联网络. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (SLAdd)

/** 还在测试阶段 请勿使用 */
- (NSDictionary *)sl_judegNull;

#ifdef DEBUG

- (NSString*)sl_descriptionWithLocale:(nullable id)locale indent:(NSUInteger)level;

#endif

#pragma mark - 以下方法是对NSDictionary+YYAdd.h的扩充

- (nullable NSString *)stringValueOrEmptyStringForKey:(NSString *)key;

- (nullable NSArray *)arrayValueOrNilForKey:(NSString *)key;
- (nullable NSArray *)arrayValueForKey:(NSString *)key default:(nullable NSArray *)def;

- (nullable NSDictionary *)dictionaryValueOrNilForKey:(NSString *)key;
- (nullable NSDictionary *)dictionaryValueForKey:(NSString *)key default:(nullable NSDictionary *)def;


@end

NS_ASSUME_NONNULL_END
